package com.ayit.car.mapper;

import com.ayit.car.pojo.Models;
import com.ayit.car.pojo.dto.ModelsPageQueryDTO;
import com.ayit.car.pojo.vo.ModelsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 为王下葬
* @description 针对表【models(汽车品牌商品表)】的数据库操作Mapper
* @createDate 2024-06-24 18:12:48
* @Entity com.ayit.car.pojo.Models
*/
@Mapper
public interface ModelsMapper extends BaseMapper<Models> {

    Page<ModelsVO> pageQuery(ModelsPageQueryDTO modelsPageQueryDTO);

    @Select("select model_name from models where id = #{modelId}")
    String getModelName(Long modelId);
}




